<?php $this->load('header')?>

<div id="content">

<?php
if ( MOD == 'search' ) {
	echo "<p><h1>搜索“<span style='color:#f60'>{$keyword}</span>”共找到 {$count} 条结果</h1></p>";
}
?>

<?php if ( have_post() ) : ?>

		<?php while ( fetch_post() ) : ?>

		<div class="article" id="article-<?php post('id')?>">
		<h2><a href="<?php post('url')?>" rel="bookmark" title="<?php post('title')?>"><?php post('title')?></a></h2>
		<p class="meta">
		<span class="authorInfo"><?php post('posttime')?> by
		<span class="authorName"><?php post('username')?></span> | </span><span class="metaComment"><a href="<?php post('url')?>#comments"><?php post('comments')?> 条评论</a></span></p>

		<?php post('excerpt'); ?>

		<p> <a href="<?php post('url')?>" class="more-link">阅读全文 &raquo;</a></p>

		</div>
		<?php endwhile; ?>

<?php else : ?>

		<h1>Not Found</h1>
		<p>抱歉，没有符合条件的文章！</p>

<?php endif; ?>

<?php echo showpage() ?>

</div>

<?php $this->load('sidebar')?>

<?php $this->load('footer')?>